<?php

class indexController extends Controller{
    public function indexAction(){
        $this->display('index.tpl');
    }
    public function loginAction(){
        $indexModel = new indexModel();
        $login = $indexModel->login();
        echo json_encode($login);
    }
}